import operator
list = [1,2,3,45,6,7,8,9]
print(list[-5:-1])
print(list[1:5:2])
print(list[-1::-1])
print(list[1:5])
list.append('hh')
del list[-1]#删除-1位置的元素
print(list)

list1 = ['hj']*4
print(list1)
list2 = [1,2,3]+[4,5,6]
print(list2)
list2.pop(len(list2)-1)#删除最后一个元素，下标判断
print(list2)
list2.remove(1) #删除值为1的元素内容判断
print(list2)

from  operator import eq
list3=[1,2,3,4,5,6,7,8,9]
list4=[9,8,7,6,5,4,3,2,1]
con = operator.eq(list3,list4)
print(con)
lis5 = list4.copy()
print(lis5)